<template>
  <div class="colorMoney" :class="{ green: num < 0 }">{{ num }}</div>
</template>

<script>
  export default {
    name: 'ColorMoney',
    props: {
      num: {
        type: Number,
        default: 0,
      },
    },
  }
</script>

<style scoped lang="less">
  .colorMoney {
    font-size: 15px;
    font-weight: bold;
    color: #3b6ef1;
  }
  .green {
    color: #12b4a7;
  }
</style>
